package com.rnkrsoft.suyan.config.server.system.dao;

import com.rnkrsoft.framework.orm.Pagination;
import com.rnkrsoft.framework.orm.jdbc.JdbcMapper;
import com.rnkrsoft.suyan.config.server.system.bo.QueryOperateBO;
import com.rnkrsoft.suyan.config.server.system.entity.OperateEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by rnkrsoft.com on 2018/10/23.
 */
public interface OperateDAO extends JdbcMapper<OperateEntity, String> {
    Pagination<QueryOperateBO> queryOperate(Pagination<QueryOperateBO> pagination);

    /**
     * 查询用户在对应系统下的菜单
     * @param userId 用户编号
     * @param appCode 应用代码
     * @return 菜单列表
     */
    List<QueryMenuItemBO> selectMenuItems(@Param("userId") Integer userId, @Param("appCode") String appCode);
}
